package com.server.transaction.example;

import com.server.common.domain.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @title: TransactionController
 * @author: gyuan
 * @description
 * @date: 2023-11-17 13:32
 */
@RestController
@RequestMapping("/transaction")
@Tag(name = "本地消息表事务测试")
public class TransactionController {

    @Autowired
    private TransactionService1 transactionService1;

    @Operation(summary = "事务测试")
    @GetMapping("/test")
    public Result<String> test() {
        return Result.ok(transactionService1.test1());
    }

}
